import re

pattern = r"[^\w\s]"

def clean_text(text):
    return re.sub(pattern, "", text.strip())